
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> <!--输出,条件,迭代标签库-->
<%--<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="fmt"%> <!--数据格式化标签库-->--%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="fn"%> <!--常用函数标签库-->
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="sql"%> <!--数据库相关标签库-->

<%@ page isELIgnored="false"%> <!--这个很重要！！！！！！不设的话，EL表达式不会解析-->
<%--
  Created by IntelliJ IDEA.
  User: cfy
  Date: 2018/7/23
  Time: 下午2:34
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<span class="glyphicon glyphicon-search"></span>
<head>
    <meta charset="GBK">
    <title>Chen Fangye</title>

    <script src="https://cdn.bootcss.com/jquery/2.2.4/jquery.min.js"></script>
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <link href="https://cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
    <script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <%--<script src="../com/cfy/ssm/Echarts/echarts.js"></script>--%>
    <script type="text/javascript" src="http://echarts.baidu.com/gallery/vendors/echarts/echarts-all-3.js"></script>
    <link rel="stylesheet" href="../css/login.css">
</head>
<body>
<h1>Hello! This is today weather!</h1> <br>
<h3>You cannot improve your past, but you can improve your future. Once time is wasted, life is wasted.</h3>
<%--<div class="row">--%>
    <%--<div class="col-xs-3 col-md-offset-5"--%>
         <%--style="background-color: #1b6d85;box-shadow:--%>
         <%--inset 1px -1px 1px #444,--%>
         <%--inset -1px 1px 1px #444;">--%>
        <%--<p>--%>
            <%--Lorem ipsum dolor sit amet,consectetur adipisicing--%>
            <%--elit.--%>
        <%--</p>--%>
    <%--</div>--%>
<%--</div>--%>
<div style="overflow: auto;height: 300px">
    <table class="table table-hover table-striped">
        <tbody>
        <tr class="info">
            <th>city</th>
            <th>daytime</th>
            <th>mintemp</th>
            <th>maxtemp</th>
            <th>weather</th>
            <th>wind</th>
            <th>description</th>
        </tr>
        <c:forEach items="${map}" var="p">
            <c:forEach items="${p.value}" var="q">
                <tr class="success">
                    <td>${q.city}</td>
                    <td>${q.daytime}</td>
                    <td>${q.mintemp}</td>
                    <td>${q.maxtemp}</td>
                    <td>${q.weather}</td>
                    <td>${q.wind}</td>
                    <td>${q.description}</td>
                </tr>
            </c:forEach>
        </c:forEach>
        </tbody>

    </table>
</div>   <%--表格显示--%>

<div id="main" style="width: 600px;height: 400px;"></div>
<script type="text/javascript">
    var myChart = echarts.init(document.getElementById('main'));

    // 指定图表的配置项和数据
    var option = {
        title: {
            text: 'ECharts 入门示例'
        },
        tooltip: {},
        legend: {
            data:['温度']
        },
        xAxis: {
            data: ["衬衫","羊毛衫","雪纺衫","裤子","高跟鞋","袜子"]
        },
        yAxis: {},
        series: [{
            name: '温度',
            type: 'bar',
            data: [5, 20, 36, 10, 10, 20]
        }]
    };

    // 使用刚指定的配置项和数据显示图表。
    myChart.setOption(option);
</script>
</body>
</html>
